//
//  BaseTabBarController.m
//  On The Load
//
//  Created by 我爱的妞 on 15/11/4.
//  Copyright © 2015年 @@叶一闽. All rights reserved.
//

#import "BaseTabBarController.h"

@interface BaseTabBarController ()

@property (nonatomic, assign) CGFloat y;

@end

@implementation BaseTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)hiddenTabBar:(CGFloat)y{
    
    if (self.y < y) {
        [UIView animateWithDuration:0.2 animations:^{
            self.tabBar.alpha = 0;
        }];
    }
    
}

- (void)showTabBar:(CGFloat)y{
    
    if (self.y >= y) {
        [UIView animateWithDuration:0.2 animations:^{
            
            self.tabBar.alpha = 1;
            
        }];
    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
